import request from '@/utils/request'



export function supplierList(data) { //软管管理-供应商管理-列表
  return request({
    url: '/hose-management/api/supplier/page',
    method: 'post',
    data
  })
}
export function peopleList(data) {//软管管理-供应商管理-人员-列表
  return request({
    url: '/hose-management/api/supplier/people/page',
    method: 'post',
    data
  })
}
export function teamList(data) { //软管管理-供应商管理-队伍-列表
  return request({
    url: '/hose-management/api/supplier/group/page',
    method: 'post',
    data
  })
}


export function supplierAdd(data) { //软管管理-供应商管理-新增
  return request({
    url: '/hose-management/api/supplier/save',
    method: 'post',
    data
  })
}
export function peopleAdd(data) { //软管管理-供应商管理-人员-新增
  return request({
    url: '/hose-management/api/supplier/people/save',
    method: 'post',
    data
  })
}
export function teamAdd(data) { //软管管理-供应商管理-队伍-编辑
  return request({
    url: '/hose-management/api/supplier/group/save',
    method: 'post',
    data
  })
}

//原 put
export function supplierEdit(data) { //软管管理-供应商管理-编辑
  return request({
    url: '/hose-management/api/supplier/put/update',
    method: 'post',
    data
  })
}
//原 put
export function peopleEdit(data) { //软管管理-供应商管理-人员-编辑
  return request({
    url: '/hose-management/api/supplier/people/put/update',
    method: 'post',
    data
  })
}
//原 put
export function teamEdit(data) { //软管管理-供应商管理-队伍-编辑
  return request({
    url: '/hose-management/api/supplier/group/put/update',
    method: 'post',
    data
  })
}

//原 del
export function supplierDelete(data) { //软管管理-供应商管理-删除
  return request({
    url: '/hose-management/api/supplier/del/delete',
    method: 'post',
    data,
  })
}
//原 del
export function peopleDelete(data) { //软管管理-供应商管理-人员-删除
  return request({
    url: '/hose-management/api/supplier/people/del/delete',
    method: 'post',
    data,
  })
}
//原 del
export function teamDelete(data) { //软管管理-供应商管理-队伍-删除
  return request({
    url: '/hose-management/api/supplier/group/del/delete',
    method: 'post',
    data,
  })
}


export function supplierDetail(id) { //软管管理-供应商管理-详情
  return request({
    url: '/hose-management/api/supplier/' + id,
    method: 'get',
  })
}
export function peopleDetail(id) { //软管管理-供应商管理-人员-详情
  return request({
    url: '/hose-management/api/supplier/people/' + id,
    method: 'get',
  })
}
export function teamDetail(id) { //软管管理-供应商管理-队伍-详情
  return request({
    url: '/hose-management/api/supplier/group/' + id,
    method: 'get',
  })
}
export function supplierExport(data) { //软管管理-供应商管理-详情
  return request({
    url: '/hose-management/api/supplier/export',
    responseType: 'arraybuffer',
    method: 'post',
    data,
  })
}

